﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WangLuo.Pub.Account.Database.Migrations.Migrations
{
    /// <inheritdoc />
    public partial class v100 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "SysUser",
                columns: table => new
                {
                    Id = table.Column<long>(type: "INTEGER", nullable: false)
                        .Annotation("Sqlite:Autoincrement", true),
                    Account = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false, comment: "账号"),
                    Password = table.Column<string>(type: "TEXT", maxLength: 64, nullable: false, comment: "密码"),
                    Name = table.Column<string>(type: "TEXT", maxLength: 200, nullable: true, comment: "姓名"),
                    Phone = table.Column<string>(type: "TEXT", maxLength: 20, nullable: true, comment: "手机"),
                    Avatar = table.Column<string>(type: "TEXT", nullable: true, comment: "头像"),
                    Sex = table.Column<int>(type: "INTEGER", nullable: false, comment: "性别-男_1、女_2"),
                    Status = table.Column<int>(type: "INTEGER", nullable: false, comment: "状态-正常_0、停用_1、删除_2"),
                    CreatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true),
                    UpdatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SysUser", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "SysUser");
        }
    }
}
